<?php $this->load->view('header'); ?>
<?php
	/*echo "<pre>";
	print_r($allMessages->result());
	echo "</pre>";*/
?>

<div class="container">
	<div class="col-lg-12">
		<table class="table table-hover">
		   <caption><div class="table-caption">Message</div></caption>
		   <thead>
		      <tr>
		         <th><?php echo $this->lang->line('Sender')?></th>
		         <th><?php echo $this->lang->line('Content')?></th>
		         <th><?php echo $this->lang->line('Time')?></th>
		      </tr>
		   </thead>
		   <tbody>
		      
		      	<?php 
		      		foreach ($allMessages->result() as $value) {
		      	?>
		      	<tr class="img-message">
                    <td><a href="<?php echo site_url('programmer/viewProfile/'.$value->sender_id.'');?>"><?php echo $value->sender?></a></td>

			        <td>
			        <?php
			        	echo $value->sender." ".$value->type_name." <a href='".site_url('project/view/'.$value->pid)."'/>".$value->project_name."</a>";
			        ?>
			        </td>
                    <td>
                        <?php echo date('d/m/y',$value->created);?>
                    </td>
			    </tr>
		      	<?php		      		
		      		}
		      	?>
		         
		      
		      
		   </tbody>
		</table>
	</div>
	<div class="col-lg-12 message-pagination">
    	<?php 
       		if(isset($pagination))
       		echo $pagination;
       	?>
    </div>
</div>
	
<script>
   $(function () { $("[data-toggle='tooltip']").tooltip(); });
</script>


<?php $this->load->view('footer'); ?>